package com.itheima.zuoye;
/*
2.狗类Dog
		属性:
			毛的颜色color
			品种breed
		行为:
			吃饭eat()
			看家lookHome()
 */
public class Dog {
    //属性:毛的颜色color
    private String color;
    //品种breed
    private String breed;
    //行为:吃饭eat()
    public  void eat() {
        System.out.println(color+"的"+breed+"正在啃骨头.....");
    }
    //看家lookHome()
    public  void lookHome() {
        System.out.println(color+"的"+breed+"正在看家.....");
    }
    //空参构造

    public Dog() {
    }

    //有参构造

    public Dog(String color, String breed) {
        this.color = color;
        this.breed = breed;
    }
    //setter和getter方法


    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }
}
